//package com.mediacloud.app.newsmodule.activity.microlive
//
//import android.graphics.Color
//import android.view.View
//import android.widget.ImageView
//import com.mediacloud.app.appfactory.cache.AppConfig
//import com.mediacloud.app.assembly.util.GlideUtils
//import com.mediacloud.app.assembly.util.Utility
//import com.mediacloud.app.newsmodule.R
//import com.mediacloud.app.newsmodule.microlive.LivesType3
//import com.mediacloud.app.newsmodule.model.VideoPlayObj
//import com.mediacloud.app.newsmodule.model.VideoPlayObj.VideoLineItem
//import com.mediacloud.app.reslib.enums.AppFactoryGlobalConfig
//
///**
// * 微直播在 直播预告  直播结束
// */
//fun MicroLiveDetailActivity.setLiveType3MainType2Video(liveType3:LivesType3): Boolean {
//    //有视频的时候
//    if(liveType3.mainType==2)
//    {
//        microPlayer.setErrorViewVisible(View.GONE)
//        microPlayer.stop()
//        microPlayer.setvideoQualityTitleViseble(View.GONE)
//        val replayObj = VideoPlayObj()
//        replayObj.setTitle(liveType3.content)
//        val lineItem = VideoLineItem()
//        lineItem.address = liveType3.mainVideopath
//        lineItem.quality = getString(R.string.standard_quility)
//        replayObj.mediaItem.add(lineItem)
//        microPlayer.mediaObjs.clear()
//        microPlayer.addMediaObjs(replayObj)
//        microPlayer.setTopControlViewVisible(View.VISIBLE)
//        isAutoPlay=AppConfig(this).isAutoplay
//        microPlayer.setAutoPlay(isAutoPlay)
//        microPlayer.showVideoTitle()
//        microPlayer.setPoster(liveType3.imagepath,AppFactoryGlobalConfig.getDefaultImageLoadDrawable())
//        microPlayer.setPosterClickListener {
//
//        }
//        if (isAutoPlay) {
//            microPlayer.resume_button_playstatus()
//            microPlayer.showLoadingView()
//        } else {
//            //
//        }
//        if (replayObj.mediaItem.size > 0) {
//            microPlayer.playVideobj(0)
//        }
//        isAutoPlay = true
//        return true
//    }
//    return false
//}